Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move docker build and push to its own action #864

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

peteryates
Copy link
Member

Context

We'll soon be moving the NPQ app from GOV.UK PaaS to Azure and to stay in line with how other projects/teams are deploying, we'll be switching from Dockerhub to GitHub's container registry. This helps simplify deployment by reducing the number of credentials required.

Changes proposed in this pull request

  • Create an action that pushes to DockerHub
  • Push images to GitHub container registry too
  • Call docker push action from deployment workflows

@peteryates peteryates force-pushed the move-docker-push-to-a-reusable-action branch 2 times, most recently from 6fe0a7e to f852475 Compare August 29, 2023 12:09
@github-actions
Copy link

Previously there was some duplication between the deployment workflows,
each created a separate Docker images and pushed them to Dockerhub.

Before the  move to Azure we want the Docker images to be pushed to
GitHub's container registry (as we'll have fewer sets of credentials to
manage). So, instead of implementing it four times I've moved the Docker
image steps to their own action and called it from each workflow.
@peteryates peteryates force-pushed the move-docker-push-to-a-reusable-action branch from fe2b617 to 13c7e6d Compare August 29, 2023 16:26
@peteryates peteryates marked this pull request as ready for review August 29, 2023 16:37
@peteryates peteryates merged commit 7067b9e into main Aug 30, 2023
4 checks passed
@peteryates peteryates deleted the move-docker-push-to-a-reusable-action branch August 30, 2023 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants